﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IPC.ListConnect.Profinet
{
    public class Equip: BaseClass
    {
        private string _ip;
        private string _port;
        private string _name;
        private string slot;
        private string _rack;
        private string _type;
        private string _channelType;
        private string _equipFullName;
        private string _channelName;
        /// <summary>
        /// 设备ip
        /// </summary>
        public string Ip { get => _ip; set => _ip = value; }
        /// <summary>
        /// 设备端口
        /// </summary>
        public string Port { get => _port; set => _port = value; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string Name { get => _name; set => _name = value; }
        /// <summary>
        /// 设备槽口号
        /// </summary>
        public string Slot { get => slot; set => slot = value; }
        /// <summary>
        /// 设备机架号
        /// </summary>
        public string Rack { get => _rack; set => _rack = value; }
        /// <summary>
        /// 设备类型
        /// </summary>
        public string Type { get => _type; set => _type = value; }
        /// <summary>
        /// 组
        /// </summary>
        public Dictionary<string,Group> Groups { get; set; } = new Dictionary<string, Group>();
        /// <summary>
        /// 通道类型
        /// </summary>
        public string ChannelType { get => _channelType; set => _channelType = value; }
        /// <summary>
        /// 标签
        /// </summary>
        public Dictionary<string, Tag> Tags { get; set; } = new Dictionary<string, Tag>();
        /// <summary>
        /// 设备全名
        /// </summary>
        public string EquipFullName { get => _equipFullName; set => _equipFullName = value; }
        /// <summary>
        /// 通道名
        /// </summary>
        public string ChannelName { get => _channelName; set => _channelName = value; }

        public void Read()
        {

        }
    }
}
